﻿using System;
using System.Reflection;
using System.Configuration;
using IDAL.Config;
namespace DataFactory.Config
{
    /// <summary>
    /// 工厂层，网站配置
    /// </summary>
    public partial class DataAccess
    {
        private static readonly string path = "SQLServerDAL";
        private DataAccess() { }

        /// <summary>
        /// 创建术语表映射
        /// </summary>
        /// <returns></returns>
        public static ITerm CreateTerm()
        {
            string className = path + ".Config.TermDAL";
            return (ITerm)Assembly.Load(path).CreateInstance(className);
        }
    }
}
